package com.zjq.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Comments {
    private int commentId;
    private String createTime;
    private String discuss;
    private int pId;
    private int userId;
    private User user;
    private int bookId;
    private Books books;

    public int getCommentId() {
        return commentId;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setDiscuss(String discuss) {
        this.discuss = discuss;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public int getpId() {
        return pId;
    }

    public Comments(String createTime, String discuss, int pId, int userId, int bookId) {
        this.createTime = createTime;
        this.discuss = discuss;
        this.pId = pId;
        this.userId = userId;
        this.bookId = bookId;
    }
}
